package com.itheima.d4_print_stream;

import java.io.FileNotFoundException;
import java.io.PrintStream;
import java.io.PrintWriter;

/*
    目标：掌握打印流：PrintStream/PrintWriter的用法。
 */

/**
 * outputStream的字节数据也可以像字符数据一样被打印出，底层调用了转换流
 */
public class PrintTest1 {
    public static void main(String[] args) throws Exception {
        PrintStream pm=new PrintStream("eee.txt");

        pm.println("哈哈哈");
        pm.println();
        pm.println("呵呵呵");

        PrintWriter pw=new PrintWriter("eee1.txt");
        pw.println("哈哈哈");
    }
}
